package behavior.strategy;

/**
 * @author dali
 * @date 2021-07-29 10:55
 * @Description
 */

public class Client {
    public static void main(String[] args) {
        Context c = new Context();
        System.out.println("坐公交花费" + c.fee(new ByBus(), 5));
        System.out.println("打车花费" + c.fee(new ByTaxi(), 5));
        System.out.println("骑单车花费" + c.fee(new ByBicycle(), 5));
    }
}
